home *** CD-ROM | disk | FTP | other *** search
- on giveYeahSnd
- global gStuMethod
- set YeahSnd to getaProp(gStuMethod, #yes_sound)
- if YeahSnd <> 4 then
- puppetSound(the name of cast (the number of cast "Harp" + YeahSnd - 1))
- else
- set s to random(6)
- if s <= 3 then
- set s to s - 1
- end if
- puppetSound(the name of cast (the number of cast "Harp" + s))
- end if
- updateStage()
- end
-
- on giveNoSnd
- global gStuMethod
- set NoSnd to getaProp(gStuMethod, #no_sound)
- if NoSnd <> 4 then
- puppetSound(the name of cast (the number of cast "Organ" + NoSnd - 1))
- else
- set s to random(6)
- if s <= 3 then
- set s to s - 1
- end if
- puppetSound(the name of cast (the number of cast "Organ" + s))
- end if
- updateStage()
- end
-
- on setVolume y
- global gPathList
- set vol to ((293 - y) / 14) + 1
- if vol < 1 then
- set vol to 1
- else
- if vol > 7 then
- set vol to 7
- end if
- end if
- registerVolume(vol)
- setVolButton(vol)
- updateStage()
- set fname to makeImagePath(gPathList, #sound, 1)
- sound playFile 1, fname
- updateStage()
- set startTicks to the ticks
- repeat while soundBusy(1) and (the ticks < (startTicks + 120))
- end repeat
- sound stop 1
- end
-
- on registerVolume vol
- set the text of cast "Volume" to string(vol)
- set the soundLevel to integer(vol)
- end
-